<?php
/**
 * Test suite for Person
 * Created on Feb 27, 2008
 * @author Taylor Talmage
 */

  //first I include the php file I'm testing
 include_once(dirname(__FILE__).'/../database/Person.php');
 class testPerson extends UnitTestCase {
      function testPersonModule() {
 //I need to make an object to test. This is just dummy data.
 $myPerson = new Person("Taylor","Talmage","928 SU","Brunswick","ME",04011,
 2074415902,2072654046,"ttalmage@bowdoin.edu","applicant,volunteer,sub","active", "Apple", "Steve", 2071234567,"no","no","no","", "", "", "", "",
 "Mon9-12, Tue9-12, Wed12-3", "", "", "02-19-89", "03-14-08",
"this is one of my notes","this is a cool note","this is another note","Taylor2074415902");

 //first assertion - check that a getter is working from the superconstructor's initialized data
 $this->assertTrue($myPerson->get_first_name()=="Taylor");

 $this->assertTrue($myPerson->get_status()=="active");
 $this->assertTrue($myPerson->get_employer()=="Apple");
 $this->assertTrue($myPerson->get_contact_person()=="Steve");
 $this->assertTrue($myPerson->get_contact_phone()==2071234567);
 $this->assertTrue($myPerson->get_last_name() !== "notMyLastName");

 echo("testPerson complete");
      }
 }

?>
